package org.ezplatform.office.forum.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.ezplatform.core.annotation.MetaData;
import org.ezplatform.core.entity.BaseSimpleEntity;

/**
 * @desc 论坛分类实体类
 * @create 2017-11-14 20:08
 **/
@MetaData(value = "论坛版块版主表")
@Entity(name = "ForumModeratorScope")
@Table(name = "oa_forum_moderator_scope", uniqueConstraints = { @UniqueConstraint(columnNames = "id") })
public class ForumModeratorScope  extends BaseSimpleEntity{

    
	/**
	 * 
	 */
	private static final long serialVersionUID = -8143693610231771313L;

	@MetaData(value = "场景编码")
	@Column(name = "scopeType", nullable = false, length = 200)
	private String scopeType;
	
	@MetaData(value = "场景ID名")
	@Column(name = "type",  length = 200)
	private String type;
	
	@MetaData(value = "场景id值")
	@Column(name = "scopeValue", nullable = false, length = 200)
	private String scopeValue;
	
	@MetaData(value = "对应场景数据的名称")
	@Column(name = "name", nullable = false, length = 200)
	private String name;
	
	@MetaData(value = "业务表名")
	@Column(name = "fieldDataTable", nullable = false, length = 200)
	private String fieldDataTable;
	
	@MetaData(value = "业务表标识值")
	@Column(name = "fieldDataValue", nullable = false, length = 200)
	private String fieldDataValue;
	
	@MetaData(value = "业务表标识字段名")
	@Column(name = "fieldData", nullable = false, length = 200)
	private String fieldData;
	
	@MetaData(value = "删除标识")
	@Column(name = "deleteFlag", nullable = false, length = 200)
	private String deleteFlag;
	
	@MetaData(value = "排序码")
	@Column(name = "sort_no", columnDefinition = "int default 0")
	private int sortNo;

	public String getScopeType() {
		return scopeType;
	}

	public void setScopeType(String scopeType) {
		this.scopeType = scopeType;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getScopeValue() {
		return scopeValue;
	}

	public void setScopeValue(String scopeValue) {
		this.scopeValue = scopeValue;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFieldDataTable() {
		return fieldDataTable;
	}

	public void setFieldDataTable(String fieldDataTable) {
		this.fieldDataTable = fieldDataTable;
	}

	public String getFieldDataValue() {
		return fieldDataValue;
	}

	public void setFieldDataValue(String fieldDataValue) {
		this.fieldDataValue = fieldDataValue;
	}

	public String getFieldData() {
		return fieldData;
	}

	public void setFieldData(String fieldData) {
		this.fieldData = fieldData;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public int getSortNo() {
		return sortNo;
	}

	public void setSortNo(int sortNo) {
		this.sortNo = sortNo;
	}

}

